package indi.cyh.fastservice.config;

import indi.cyh.jdbctool.core.DataSourceFactory;
import indi.cyh.jdbctool.core.JdbcDataBase;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description TODO
 * @Author CYH
 * @Date 2021/7/22 10:56
 **/
@Configuration
public class dbConfig {

    @Bean("mainDb")
    public JdbcDataBase getMainDb() {
        return DataSourceFactory.getJdbcDataBase();
    }
}
